<extend name="Base/common"/>
<block name="body">
	<div class="col-xs-12">
        {:W('Common/Adv/render',array(array('name'=>'slider')))}
    </div>
	<div class="col-xs-4 videonav" style="width:300px;">
		<div class="side">
			<ul class="sidenav">
				<li <if condition="$_GET['type'] eq 'week'"> class="on"</if>>
					<a href="{:U('Video/Index/index',array('video_id'=>$_GET['video_id'],'type'=>'week'))}">
						<h2>周榜</h2>
						<h4>WEEKLY</h4>
					</a>
				</li>
				<li <if condition="$_GET['type'] eq 'month'"> class="on"</if>>
					<a href="{:U('Video/Index/index',array('video_id'=>$_GET['video_id'],'type'=>'month'))}">
						<h2 class="m">月榜</h2>
						<h4>MONTHLY</h4>
					</a>
				</li>
				<li <if condition="$_GET['type'] eq ''"> class="on"</if>>
					<a href="{:U('Video/Index/index',array('video_id'=>$_GET['video_id'],'type'=>''))}">
						<h2 class="all">总榜</h2>
						<h4>TOTAL</h4>
					</a>
				</li>
			</ul>
			<div class="sidebtn">
				<a href="{:U('video/index/add')}">上传视频</a>
				<h4>想让自己的视频也有排名，赶快上传视频吧！</h4>
			</div>
		</div>
	</div>
	<div class="col-xs-8" style="width:710px;margin-left:10px;">
		
			<div class="newvideo">
				<div class="list">
					<ul>
						<volist name="contents" id="vo">
						<li <if condition="$i % 3 eq 0">style="margin-right:0"</if>>
							<div class="img">
								<a href="{:U('Video/Index/videoContentDetail',array('id'=>$vo['id']))}"><img src="{$vo.cover_id|getThumbImageById=208,117}" /></a>
							</div>
							<div class="text">
								<h2><a href="{:U('Video/Index/videoContentDetail',array('id'=>$vo['id']))}">{$vo.title|getShortSp=12}</a></h2>
								<h4>来自树丛 : {$vo.group.title}</h4>
								<h4>用户 : <a href="{$vo.user.space_url}" class="c_green">{$vo.user.nickname}</a></h4>
							</div>
							<div class="meta">
								<div class="meta">
									<dl>
										<dd><i class="iconfont">&#xe638;</i> {$vo.vote_count}</dd>
										<dd><i class="iconfont">&#xe63a;</i> {$vo.view_count}</dd>
									</dl>
								</div>
							</div>
						</li>
						</volist>
					</ul>
				</div>
			</div>
			<if condition="count($contents) eq 0">
	            <div style="font-size:3em;padding:2em 0;color: #ccc;text-align: center">暂时无视频</div>
	        </if>
			<div class="pull-right">
                {:getPagination($totalPageCount,12)}
			</div>
	</div>
    
</block>

